package org.jeecg.modules.flow.common.util;

import cn.hutool.core.date.DateUtil;

import java.util.Date;

public class FlowUtils {
    public static Date beginOfDay(String time) {
        if (time == null) return null;
        return DateUtil.beginOfDay(DateUtil.parse(time, "yyyy-MM-dd"));
    }

    public static Date endOfDay(String time) {
        if (time == null) return null;
        return DateUtil.endOfDay(DateUtil.parse(time, "yyyy-MM-dd"));
    }
}
